package cc.mcggdd.leah.boot.stock.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;

/**
 * 持仓管理视图对象
 *
 * @author 
 * @since 2025-02-13 09:38
 */
@Getter
@Setter
@Schema( description = "持仓管理视图对象")
public class StockHoldingVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;
    @Schema(description = "股票代码")
    private String code;
    @Schema(description = "股票名称")
    private String name;
    @Schema(description = "收益额")
    private BigDecimal income;
    @Schema(description = "收益率")
    private BigDecimal yield;
    @Schema(description = "建仓日期")
    private LocalDate startDate;
    @Schema(description = "清仓日期")
    private LocalDate endDate;
    @Schema(description = "状态")
    private String status;
}
